package com.chongbangbang.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 宠物基本信息之疫苗接种信息
 * </p>
 *
 * @author TP
 * @since 2022-03-18 16:09:49
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("pet_vaccinate_info")
@ApiModel(value = "PetVaccinateInfo对象", description = "宠物基本信息之疫苗接种信息")
public class PetVaccinateInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("pet_vaccinate_info表的自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("外键，对应用户表主键id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("外键,对应宠物信息的id")
    @TableField("pet_id")
    private Integer petId;

    @ApiModelProperty("疫苗id")
    @TableField("vaccinate_id")
    private String vaccinateId;

    @ApiModelProperty("疫苗名字、类型")
    @TableField("vaccinate_name")
    private String vaccinateName;

    @ApiModelProperty("接种时间")
    @TableField("vaccinate_time")
    private LocalDate vaccinateTime;

    @ApiModelProperty("描述、补充")
    @TableField("description")
    private String description;

    @ApiModelProperty("创建时间")
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty("修改时间")
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty("逻辑删除")
    @TableField("`delete`")
    @TableLogic
    private Integer delete;


}
